package operation;

import book.BookList;

public class Show implements Ioperation{
    @Override
    public void work(BookList booklist) {

        int currentSize = booklist.getCurrentSize();
        if(currentSize == 0){
            System.out.println("书架为空！！！");
            return;
        }

        System.out.println("显示所有的图书");
        for (int i = 0; i < currentSize; i++) {
            System.out.println(booklist.getBooks(i));
        }
   }
}
